package interface_;

/**
 * @Package: interface_
 * @ClassName: InterfaceApp
 * @Author: x2606
 * @CreateTime: 2022/3/11 18:36
 * @Description:
 */

public class InterfaceApp {
    public static void main(String[] args) {
        Camera camera = new Camera();
        Phone phone = new Phone();
        Computer computer = new Computer();

        //通过动态绑定机制，传入接口不同的实现类获得不同效果
        computer.work(camera);
        computer.work(phone);

    }
}
